package com.online.dao;

import com.online.entity.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper {

    List<Course> selectCourseNameByTeacherNumber(String teacherNumber);

    int deleteCourseByTeacherNumber(@Param("courseId") Integer courseId, @Param("teacherNumber") String teacherNumber);

    int insertACourse(Course course);

    Course selectACourse(@Param("courseName") String courseName, @Param("teacherNumber") String teacherNumber);

    Course selectCourseById(Integer courseId);

}
